﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ClassCat
{
    public class Triangle
    {
        private double width;
        private double height;
        
        public double Width { get => width; set => width = value; }
        public double Height { get => height; set => height = value; }

        public Triangle() { }

        public double Perimeter(double w, double h)
        {
            this.Width = w;
            this.Height = h;
            return Width * Height;
        }

        
        public double Area(double w, double h)
        {
            this.Width = w;
            this.Height = h;
            return 2 * (Width + Height);
        }

    }
}
